import React from 'react';
import { View, Text, Image } from '@tarojs/components';
import './index.scss';

interface EmptyStateProps {
  title?: string;
  description?: string;
  image?: string;
}

const EmptyState: React.FC<EmptyStateProps> = ({
  title = '暂无订单',
  image = '/src/assets/images/empty/order.png'
}) => {
  return (
    <View className="empty-state">
      <Image className="empty-image" src={image} />
      <Text className="empty-description">{title}</Text>
      {/* <Text className="empty-description">{description}</Text> */}
    </View>
  );
};

export default EmptyState;
